<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 统计预填数据用时
        $startTime = microtime(true);

        $this->call(AdminPermissionsTableSeeder::class);

        $endTime = microtime(true);
        $elapsed = $endTime - $startTime;

        echo "-------------------\n";
        echo "    建表用时: " . CREATE_TABLES_ELAPSED_TIME . " sec\n";
        echo "预填数据用时: $elapsed sec\n";
        echo "-------------------\n";
    }
}
